<template>
  <van-row class="panel-content">
    <div v-html="contractData"></div>
  </van-row>
</template>

<script>
export default {
  data() {
    return {
      title: "",
      showTitle: 0,
      contractData: "",
    }
  },
  created() {
    this.getLoad();
  },
  methods: {
    //初始化加载
    getLoad() {
      this.id = this.$route.query.id;
      let params = {
        id: this.id ? this.id : 0,
      }
      this.$http(window.config.webHomeApiV2 + '/sdk_notice_info', params, "post", false).then((res) => {
        let code = res['code'];
        if (code !== 1) {
          this.BRDialog(res['msg']);
          return;
        }
        let resData = res['data'];
        this.contractData = resData['details'];
      });
    },
    //返回首页
    toHome() {
      this.$router.push('/account/home');
    }
  }
};
</script>

<style lang='less'>
@import "../../assets/css/keFu/index.less";
</style>